<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>knet: dlist_add_front_node</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">knet
   &#160;<span id="projectnumber">1.4.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="modules.html"><span>模块</span></a></li>
      <li><a href="annotated.html"><span>结构体</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e74998c9a9305a116abc25fcf9a1edb.html">knet-git</a></li><li class="navelem"><a class="el" href="dir_a1c045b39f32066568ae964b52db514f.html">knet</a></li><li class="navelem"><a class="el" href="dir_f76d03789f0b12416cfffea59e2ed47d.html">knet</a></li><li class="navelem"><a class="el" href="a00065.html">list.c</a></li>  </ul>
</div>
</div><!-- top -->
<div class="contents">
<table cellspacing="0" cellpadding="0" border="0">
  <tr>
   <td valign="top">
      <div class="navtab">
        <table>
          <tr><td class="navtab"><a class="qindex" href="a00065_a60b57b500075cafe4391396066f4a4a4.html#a60b57b500075cafe4391396066f4a4a4">dlist_add_front</a></td></tr>
          <tr><td class="navtab"><a class="qindexHL" href="a00065_a0c58623fcbc3f1108a65f1a78a605d42.html#a0c58623fcbc3f1108a65f1a78a605d42">dlist_add_front_node</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="a00065_a24c0ab8543c8088b435b8ac8cef43294.html#a24c0ab8543c8088b435b8ac8cef43294">dlist_add_tail</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="a00065_aca87625d54662842909b0900be717a3f.html#aca87625d54662842909b0900be717a3f">dlist_add_tail_node</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="a00065_a8c365752ad9b0f4b633f397923f9a749.html#a8c365752ad9b0f4b633f397923f9a749">dlist_create</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="a00065_af42eadda32e6ed8920ec9fd6f0f5e278.html#af42eadda32e6ed8920ec9fd6f0f5e278">dlist_delete</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="a00065_a975e582084cc96ee410fb3816f384774.html#a975e582084cc96ee410fb3816f384774">dlist_destroy</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="a00065_ae6b794873e755bedabfc2e64e45a0dbe.html#ae6b794873e755bedabfc2e64e45a0dbe">dlist_empty</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="a00065_a08f09dfc5e15e5953016110f4527154b.html#a08f09dfc5e15e5953016110f4527154b">dlist_get_back</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="a00065_ac398fa4051e1d12953a24a9c4b011516.html#ac398fa4051e1d12953a24a9c4b011516">dlist_get_count</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="a00065_af684bff246b7633789ce4bab232676b8.html#af684bff246b7633789ce4bab232676b8">dlist_get_front</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="a00065_aa6e2141ad5da25451a8b80a8195adf3d.html#aa6e2141ad5da25451a8b80a8195adf3d">dlist_init</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="a00065_a7d5102f0d3cf28ce26a381033d6e29dc.html#a7d5102f0d3cf28ce26a381033d6e29dc">dlist_next</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="a00065_a5580f80fa42399439b7eba9d59faae59.html#a5580f80fa42399439b7eba9d59faae59">dlist_node_create</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="a00065_a1e37eb90626c9cb061a4d8536d9e1c71.html#a1e37eb90626c9cb061a4d8536d9e1c71">dlist_node_destroy</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="a00065_abc1c6bf7dbfbdf4bffc822ddccf2d07e.html#abc1c6bf7dbfbdf4bffc822ddccf2d07e">dlist_node_get_data</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="a00065_a743378abbafebd0aa14ff754c7bbe9b5.html#a743378abbafebd0aa14ff754c7bbe9b5">dlist_node_init</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="a00065_ae845fbc2a6ba73590161f04340dabed8.html#ae845fbc2a6ba73590161f04340dabed8">dlist_node_set_data</a></td></tr>
          <tr><td class="navtab"><a class="qindex" href="a00065_a4458c5c60c2d15b434d33255429a633d.html#a4458c5c60c2d15b434d33255429a633d">dlist_remove</a></td></tr>
        </table>
      </div>
   </td>
   <td valign="top" class="mempage">
<a class="anchor" id="a0c58623fcbc3f1108a65f1a78a605d42"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00051_ac701f00a0851c97467ae35c382b316b7.html#ac701f00a0851c97467ae35c382b316b7">kdlist_node_t</a>* dlist_add_front_node </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00051_ae098586334a621a23cef7cb17590b618.html#ae098586334a621a23cef7cb17590b618">kdlist_t</a> *&#160;</td>
          <td class="paramname"><em>dlist</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>建立新节点并添加到链表头部，同时设置节点自定义数据 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">dlist</td><td>kdlist_t实例 </td></tr>
    <tr><td class="paramname">data</td><td>自定义数据指针 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>kdlist_node_t实例 </dd></dl>

</div>
</div>
    </td>
  </tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2015年 七月 22日 星期三 10:36:36 , 为 knet使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
